<?php
/*
 * Frog CMS - Content Management Simplified. <http://www.madebyfrog.com>
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
?>

<?php
if(count($params) == 2 && $params[0] = 'add_image'){
	$add_image = get_url('plugin/pgallery/add_image/' . $params[1]);
} else {
	$add_image = get_url('plugin/pgallery/add_image');
}
?>

<p class="button"><a href="<?php echo get_url('plugin/pgallery/add_category'); ?>"><img src="<?php echo URL_PUBLIC; ?>frog/plugins/pgallery/images/category_add.png" align="middle" alt="page icon" /><?php echo __("Add category"); ?></a></p>
<p class="button"><a href="<?php echo $add_image ?>"><img src="<?php echo URL_PUBLIC; ?>frog/plugins/pgallery/images/item_add.png" align="middle" alt="page icon" /><?php echo __("Add image"); ?></a></p>
<p class="button"><a href="<?php echo get_url('plugin/pgallery/settings'); ?>"><img src="<?php echo URL_PUBLIC; ?>frog/plugins/pgallery/images/settings.png" align="middle" /><?php echo __("Settings"); ?></a></p>
